{config_load file="ifolder.txt"}
{config_load file="inserat.txt"}

<div id="sidebarL">
	<div id="folderInfo">
	    <h2>{#admin#}</h2>
        <ul>
            <li id="addListing"><a href="{$INA.this}?add=true">{#addListing#}</a></li>
        </ul>
        
        {if $childFolders}
        <h2>{#subfolders#}</h2>
        <ul>
            {foreach from=$childFolders item=folder}
                <li><a href="/{$folder.path}">{$folder.title} ({$folder.published_pages})</a></li>
            {/foreach}
        </ul>
        {/if}
        
        <h2>{#filter#}</h2>
        <ul id="filter">
            {if !$smarty.session.filter}
                <li class="selected">{#none#}</li>
            {else}
                <li><a href="{$INA.this}?filter=none">{#none#}</a></li>
            {/if}
            
            {if $smarty.session.filter == "selling"}
                <li class="selected">{#selling#}</li>
            {else}
                <li><a href="{$INA.this}?filter=selling">{#selling#}</a></li>
            {/if}
            
            {if $smarty.session.filter == "seeking"}
                <li class="selected">{#seeking#}</li>
            {else}
                <li><a href="{$INA.this}?filter=seeking">{#seeking#}</a></li>
            {/if}
        </ul>
        
        <h2>{#searchFolder#}</h2>
        <form method="get" name="search" action="{$INA.this}">
            <input type="text" name="search" id="searchBox" />
            <input type="submit" name="submit" value="{#go#}" />
        </form>
        
        
    </div>
    
	<!--
    <div class="helpBox">
        <p>This is a help box. It is to be used to create some sort of help message.</p>
    </div>
	-->
</div>


<div id="breadcrumbs">
	{foreach from=$breadcrumbs item=crumb name=crumbs}
		{if $smarty.foreach.crumbs.last}
			{$crumb.title}
		{else}
			<a href="{$crumb.url}">{$crumb.title}</a> > 
		{/if}
	{/foreach}
</div>

<div id="contentR">
    <h2 id="foldTit">{$data.title}</h2>
    
    {include file="inseratList.html"}
</div>


